package net.huashitong.Project.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sirdc.modules.core.dao.BaseDao;
import com.sirdc.modules.sys.base.StringPKService;

import net.huashitong.Project.dao.NodeFileDao;
import net.huashitong.Project.entity.NodeFile;

@Service
public class NodeFileService extends StringPKService<NodeFile> {
	
	@Autowired
	private NodeFileDao dao;
	
	@Override
	protected BaseDao<NodeFile, String> getDao() {
		// TODO Auto-generated method stub
		return dao;
	}	
	public List<NodeFile> getFilesByNodeId(String nodeId){
		return dao.getFilesByNodeId(nodeId);
	}
}
